{% load custom_filters %}
<td>
    <button type="button" class="btn btn-primary btn-sm radius-30 px-4" data-toggle="modal" data-target=".bd-example-modal-lg{{ mydds.ddh }}">详情</button>

    <div class="modal fade bd-example-modal-lg{{ mydds.ddh }}" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
  <div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <h5 class="modal-title" id="exampleModalLabel">订单详情</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
<div class="container">
    <div class="row">
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单号</span>
									<input type="text" readonly value="{{ mydds.ddh }}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单创建时间</span>
									<input type="text" readonly value="{{ mydds.ddtime }}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单归属</span>
									<input type="text" readonly value="{{ mydds.dduser }}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单客户</span>
									<input type="text" readonly value="{{ mydds.kehu }}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单产品</span>
									<input type="text" readonly value="{% for foo in mydds.ddchanpin.all %}{{ foo }}{% endfor %}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单金额</span>
									<input type="text" readonly value="{{ mydds.ddjine }}" class="form-control" >
								</div>
<div class="input-group mb-3"> <span class="input-group-text" id="inputGroup-sizing-default">订单毛利</span>
									<input type="text" readonly value="{% for foo in mydds.ddchanpin.all %}{{ mydds.ddjine|sub:foo.cbj }}{% endfor %}" class="form-control" >
								</div>

    </div>


</div>


      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
{#        <button type="button" class="btn btn-primary">Save changes</button>#}
      </div>
    </div>
  </div>
</div>
</td>




<!-- Modal -->
